﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace NGUYENTHANHDONG.OOP.Inhertance___Polimophism.SAMPLES.SAMPLES_03
{
    public partial class SAMPLEs03 : Form
    {
        public SAMPLEs03()
        {
            InitializeComponent();
        }

        private void SAMPLEs03_Load(object sender, EventArgs e)
        {
            NONGDAN nd = new NONGDAN(2, 2, "Den", "Gao", 10, 1, "Riu", "Quan Ao Nong Dan");
            lsbDanhSach.Items.Add("Nong Dan");
            lsbDanhSach.Items.Add("Tay: " + nd.TAY);
            lsbDanhSach.Items.Add("chan: " + nd.CHAN);
            lsbDanhSach.Items.Add("Mau Da: " + nd.MAUDA);
            lsbDanhSach.Items.Add("Thuc An: " + nd.THUCAN);
            lsbDanhSach.Items.Add("Gio LD: " + nd.GIOLD);
            lsbDanhSach.Items.Add("Ky Nang: " + nd.KYNANG);
            lsbDanhSach.Items.Add("Nong Cu: " + nd.NONGCU);
            lsbDanhSach.Items.Add("Trang Phuc: " + nd.TRANGPHUC);
            lsbDanhSach.Items.Add("Di Chuyen: " + nd.DiChuyen());
            lsbDanhSach.Items.Add("Lao Dong: " + nd.LaoDong());

            CHIENBINH cb = new CHIENBINH(2, 2, "Trang", "Thit", 150, 200, "Kiem", "Bach Kim");
            lsbDanhSach.Items.Add("Chien Binh");
            lsbDanhSach.Items.Add("Tay: " + cb.TAY);
            lsbDanhSach.Items.Add("chan: " + cb.CHAN);
            lsbDanhSach.Items.Add("Mau Da: " + cb.MAUDA);
            lsbDanhSach.Items.Add("Thuc An: " + cb.THUCAN);
            lsbDanhSach.Items.Add("Noi Luc: " + cb.NOILUC);
            lsbDanhSach.Items.Add("Khang Doc: " + cb.KHANGDOC);
            lsbDanhSach.Items.Add("Binh Khi: " + cb.BINHKHI);
            lsbDanhSach.Items.Add("Ao Giap: " + cb.AOGIAP);
            lsbDanhSach.Items.Add("Di Chuyen: " + cb.DiChuyen());
            lsbDanhSach.Items.Add("Tan Cong: " + cb.tancong());

        }
    }
}
